package com.game.cards.monsters;

import com.game.cards.Attribute;
import com.game.cards.Flags;
import com.game.cards.MonsterCard;
import com.game.cards.Type;
import com.game.play.Events;
import com.game.play.Game;
import com.game.play.Player;

public class AnnoyingFirePixie extends MonsterCard {
	public AnnoyingFirePixie()
	{
		this.title = "Annoying Fire Pixie";
		this.description = "Any time your opponent would take damage \n" + 
		"Your opponent takes 300 extra damage to his/her lifepoints." + "\nTHis effect does not stack on itself";
		
		this.stars = 3;
		this.attack = 800;
		this.defense = 1200;
		
		this.attribute = Attribute.fire;
		this.type = Type.Pyro;
		
		this.flags.add(Flags.effect);
		this.flags.add(Flags.triggereffect);
		
		this.trigger = (Events.loselifepoints);
	}
	public boolean test(Game game)
	{
		String[] arg = game.getCurrentTurn().getAq().getEventArgs(this.trigger);
		
		Player target = game.getPlayerByName(arg[1]);
		
		target.setLifePointsSilent(target.getLifePoints()-300);
		
		System.out.println(target.getName() + " took 300 extra damage from " + this.title + "!");
		return true;
	}

}
